<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改个人信息</title>
<script type="text/javascript" src="${staticResources}/js/ajax.js"></script>
<link type="text/css" href="${staticResources}/css/personalcenter.css" rel="stylesheet" />
</head>
<body onload="iframeResizePipe()">

<iframe id="helpframe" src='' height='0' width='0' frameborder='0'></iframe>
<script type="text/javascript">
  function iframeResizePipe()
  {
     // What's the page height?
     var height = document.body.scrollHeight;

     // Going to 'pipe' the data to the parent through the helpframe..
     var pipe = document.getElementById('helpframe');

     // Cachebuster a precaution here to stop browser caching interfering
     pipe.src = '${contextPath}/framehelper.html?height='+height+'&cacheb='+Math.random();
  }
</script>

<div class="con">
  <div class="password">
    <div class="grey2" style=" font-weight:600"><b>修改个人信息</b></div>
    <div class="xgmm">
      <form method="post" action="">
      <div class="clear"></div>
      <dl>
        <label>
        <dd>昵称：</dd>
        <input type="text" style="width:200px; height:25px;" name="nickName" id="nickName" placeholder="昵称" value="${user.nickName }" />
        </label>
      </dl>
      <div class="clear"></div>
      <dl>
        <label>
        <dd>手机号：</dd>
        <input type="text" style="width:200px; height:25px;" name="phoneNumber" id="phoneNumber" placeholder="手机号" value="${user.phoneNumber }" />
        </label>
      </dl>
      <div class="clear"></div>
      <dl>
        <label>
        <dd>个性签名：</dd>
        <input type="text" style="width:200px; height:25px;" name="signature" id="signature" placeholder="个性签名" value="${user.signature }" />
        </label>
      </dl>
      <div class="clear"></div>
      <div class="tijiao">
        <input type="image" style="" src="${staticResources}/image/submit.jpg" width="100" height="35"  class="button" name="" value=""/>
      </div>
      <c:if test="${result eq 1 }">
      <div class="clear"><font color='red'> 修改信息成功！</font></div>
      </c:if>
      <c:if test="${result eq -1 }">
      <div class="clear"><font color='red'> 昵称已经被其他人使用了！</font></div>
      </c:if>
      </form>
      <div id="checkid"></div>
    </div>
  </div>
</div>

</body>
</html>